/**
 * @Author: ColorSheep
 * @Date: 27 6月 2025 21:55
 * @Version: 1.0
 * @Description: 列表泛型接口
 */
public interface MyList<E> {

    boolean add(E e);
    
    boolean addFirst(E e);
    
    boolean addLast(E e);
    
    E get(int index);
    
    E getFirst();
    
    E getLast();
    
    boolean remove(int index);
    
    boolean remove(E e);
    
    boolean removeFirst();
    
    boolean removeLast();
    
    int size();
    
    boolean contains(E e);
    
    void printList();

}
